package gapp.itg;

import gapp.subsys.ISubsys;
import gapp.subsys.impl.Subsys;


/**
 * Global access point to all subsystems (handling all references
 * to). Possible control number of objects (make a pool)
 * NOTE : Only delivering interfaces
 * @author hajo
 *
 */
public final class Context {
	
	// Possible (but for now a Singleton)
	// ISubsysState s = SubsysState.newInstance();
	
	// One instance of subsystem
	private static final ISubsys subsys = Subsys.newInstance(); 
		
	public static ISubsys getSubSysService(){
		System.out.println("hej och hå just då");
		System.out.println("hej då");
		return subsys;
	}
	
}
